package com.practice.communication.nio.gp.buffer;

import java.nio.ByteBuffer;

public class Buffers {
	
	private ByteBuffer readBuffer;
	
	private ByteBuffer writeBuffer;

	public Buffers(int readCapacity, int writeCapacity) {
		this.readBuffer = ByteBuffer.allocate(readCapacity);
		this.writeBuffer = ByteBuffer.allocate(writeCapacity);
	}

	public ByteBuffer getReadBuffer() {
		return readBuffer;
	}

	public ByteBuffer getWriteBuffer() {
		return writeBuffer;
	}

}
